import 'package:cbec_app/generated/json/base/json_field.dart';
import 'package:cbec_app/generated/json/coupon_widget_item_entity.g.dart';
import 'dart:convert';
export 'package:cbec_app/generated/json/coupon_widget_item_entity.g.dart';

@JsonSerializable()
class CouponWidgetItemEntity {
  int? couponId = 0;
  String? couponUserId = '';
  String? name = '';
  String? type = '';
  String? goodsType = '';
  String? content = '';
  String? drop = '';
  int? dropValue = 0;
  String? useDate = '';
  int? validityType = 0;
  String? validityStartTime = '';
  String? validityEndTime = '';
  int? hasGet = 0;
  int? getLimit = 0;
  int? ruleType = 0;
  int? couponType = 0;

  CouponWidgetItemEntity();

  factory CouponWidgetItemEntity.fromJson(Map<String, dynamic> json) => $CouponWidgetItemEntityFromJson(json);

  Map<String, dynamic> toJson() => $CouponWidgetItemEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
